<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>

<script type="text/javascript" language="javascript" src="js/jquery-1.4.2.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery-ui-1.8.2.custom.js"></script>
<link href="themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />

</head>

<body>

<script language="javascript" type="text/javascript">
$(document).ready(function(){
	
	$('.d1').draggable({
		cursor: 'pointer',
		opacity: 0.35,
		revert: true
	});
	
	$('.d2').droppable({
		drop:function(event, ui) {
			$('.d2').html('d2 is droppable');
		}
	});
	
});
</script>

<div class="d1" style="width:200px; height:200px; background-color:#FF0000; float:left"></div>
<div class="d2" style="width:100px; height:100px; background-color:#0000FF; margin-left:500px;"></div>

</body>
</html>
